-
Notifications
You must be signed in to change notification settings - Fork 2
Fix issue with total_price_cents_usd param in create_order #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
self.assertEqual(project.average_price_per_tonne_cents_usd, 0) | ||
self.assertEqual(project.remaining_mass_g, 0) | ||
self.assertGreater(project.average_price_per_tonne_cents_usd, 0) | ||
self.assertGreater(project.remaining_mass_g, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@biglovisa I had to relax this test because we added records to this project on the sandbox.
Generally, I wouldn't want those tests to be too locked in to a specific value.
"""Create an order on price | ||
""" | ||
order = self.api.create_order(total_price_cents_usd=100) | ||
|
||
self.assertTrue(order) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test would have caught #23
What
create_order
Why
SDK Release Checklist